﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartPlant.Model.DbContext
{
    [SugarTable("FILTEREDRELATIONSHIP")]
    public class Filteredrelationship
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public decimal Id { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "RELATIONSHIPID")]
        public decimal? Relationshipid { get; set; }

        /// <summary>
        /// 关系中，额外需要过滤的属性。如DWG_TYPE_ID
        ///</summary>
        [SugarColumn(ColumnName = "ATTRIBUTEID")]
        public decimal? Attributeid { get; set; }

        /// <summary>
        ///  关系中，额外需要过滤的属性的数值。如DWG_TYPE_ID = 1
        ///</summary>
        [SugarColumn(ColumnName = "ATTRIBUTEVALUE")]
        public string Attributevalue { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "NAME")]
        public string Name { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DISPLAYNAME")]
        public string Displayname { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ITEMID")]
        public decimal? Itemid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SPCREATE")]
        public string Spcreate { get; set; }

        #region 1

        /// <summary>
        /// Itemid对应的Item对象
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Item item { get; set; }

        /// <summary>
        /// Attributeid对应的Attributes对象
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Attribute attribute { get; set; }

        /// <summary>
        /// Relationshipid对应的Relationships对象
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Relationships relationships { get; set; }

        #endregion 1
    }
}
